<?php

//require '../../../../../../includes/common.inc.php';

/*echo "<script>alert('".$_GET['filePath']."')</script>";exit();*/

//var_dump($_SERVER);

$filePath    = $_SERVER['DOCUMENT_ROOT'].trim($_GET['filePath']);

if ($filePath)
{
@unlink($filePath);
/*echo "<script>alert('删除成功。');</script>";*/
}
else
{
/*echo "<script>alert('删除错误，可能文件不存在或者已经删除。');</script>";*/
}
?>
